(void)get_user(done, pdone);
}
- if ( unlikely(!array_access_ok(VERIFY_READ, ureqs, count, sizeof(req))) )
+ if ( unlikely(!array_access_ok(VERIFY_READ, ureqs, count, sizeof(req))) ) {
UNLOCK_BIGLOCK(d);
return -EFAULT;
}
*/
#define START_EXTENT_SHIFT 4 /* op[:4] == start_extent */
-#define PREEMPT_CHECK(_op) \
- if ( hypercall_preempt_check() ) { \
- hypercall_create_continuation( \
- __HYPERVISOR_dom_mem_op, 5, \
- (_op) | (i << START_EXTENT_SHIFT), \
- extent_list, nr_extents, extent_order, \
- (d == current) ? DOMID_SELF : d->id); \
- return __HYPERVISOR_dom_mem_op; \
+#define PREEMPT_CHECK(_op) \
+ if ( hypercall_preempt_check() ) { \
+ hypercall_create_continuation( \
+ __HYPERVISOR_dom_mem_op, 5, \
+ (_op) | (i << START_EXTENT_SHIFT), \
+ extent_list, nr_extents, extent_order, \
+ (d == current->domain) ? DOMID_SELF : d->id); \
+ return __HYPERVISOR_dom_mem_op; \
}
static long